//
//  CONavBarView.m
//  HandWenZhou
//
//  Created by carlos on 12-10-30.
//  Copyright (c) 2012年 carlos. All rights reserved.
//

#import "CONavBarV.h"
#import "ViewUtils.h"
#import "MobClick.h"
@implementation CONavBarV

//点击了某个按钮
-(BOOL)onClick:(UIView *)sender{
    if (sender.tag == 1) {
        //返回按钮
        if (self.onClickNavLeftBtn) {
            self.onClickNavLeftBtn();
        }
    }

    return YES;
}

//静态方法，创建导航栏
+(CONavBarV *)createWithTitle:(NSString *)mTitle
{
    CONavBarV *coNav = [UIView createWithXib:NSStringFromClass([self class])];
    coNav.leftBtn.titleLabel.text = kWBack;
    coNav.titelLabel.text = mTitle;
    return coNav;
}
-(void)showLeftBtn
{
    self.leftBtn.hidden = NO;
}
-(void)hideLeftBtn
{
    self.leftBtn.hidden = YES;
}
@end
